package com.rpc.client.demo;

import java.net.InetSocketAddress;

import com.rpc.client.framework.RpcClient;
import com.rpc.spi.UserSpi;

/**
 * com.rpc.client.demo
 *
 * @author humdeef
 * @since 2019-07-17
 */
public class ClientApplication {
  public static void main(String[] args) {
    UserSpi proxy =
        RpcClient.getRemoteProxy(UserSpi.class, new InetSocketAddress("127.0.0.1", 8888));
    System.out.println(proxy.add(123));
  }
}
